package flextv.main.logic {

import flash.filesystem.File;
	

public class AirUtil {
	
	public function AirUtil() {
		throw new Error("Not instanciable!");
	}

	/**
	 * @return eg: File("/Users/phudy/Library/Preferences/FlexTV/Local Store/videos/alWAwUQxTbc.flv")
	 */
	public static function resolveFlvFile(yid: String): File {
		if(File.applicationStorageDirectory.exists == false) {
			File.applicationStorageDirectory.createDirectory();
		}
		// return File.applicationStorageDirectory.resolvePath("videos" + File.separator + yid + ".flv");
		return new File(File.applicationStorageDirectory.nativePath + File.separator + "videos" + File.separator + yid + ".flv");
	}
	
}
}